﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace COUP.Core.Networking
{
    public unsafe class LoginReqPacket : Packet
    {
        public LoginReqPacket(Packet Data)
        {
            buffer = Data.buffer;
        }

        public int AccountID
        {
            get
            {
                fixed (byte* ptr = buffer)
                    return (int)*((int*)(ptr + 4));
            }
        }

        public int Token
        {
            get
            {
                fixed (byte* ptr = buffer)
                    return (int)*((int*)(ptr + 8));
            }
        }
    }
}
